package com.csweimei.rentmanagementtreasure.http.entity;

import com.csweimei.rentmanagementtreasure.utils.ValidateUtils;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class CustomerDetailBean extends BaseResult {
    @SerializedName("data")
    private DataDTO data;

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO implements Serializable {
        @SerializedName("id")
        private int id;
        @SerializedName("userid")
        private int userid;
        @SerializedName("customImg")
        private String customImg;
        @SerializedName("name")
        private String name;
        @SerializedName("sex")
        private String sex;
        @SerializedName("phone")
        private String phone;
        @SerializedName("WeChat")
        private String weChat;
        @SerializedName("IDCard")
        private String iDCard;
        @SerializedName("birthday")
        private String birthday;
        @SerializedName("customType")
        private String customType;
        @SerializedName("minRent")
        private String minRent;
        @SerializedName("maxRent")
        private String maxRent;
        @SerializedName("minArea")
        private String minArea;
        @SerializedName("maxArea")
        private String maxArea;
        @SerializedName("quarters")
        private String quarters;
        @SerializedName("details")
        private String details;
        @SerializedName("notes")
        private String notes;
        @SerializedName("addtime")
        private String addtime;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUserid() {
            return userid;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }

        public String getCustomImg() {
            return customImg;
        }

        public void setCustomImg(String customImg) {
            this.customImg = customImg;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getWeChat() {
            return weChat;
        }

        public void setWeChat(String weChat) {
            this.weChat = weChat;
        }

        public String getIDCard() {
            return iDCard;
        }

        public void setIDCard(String iDCard) {
            this.iDCard = iDCard;
        }

        public String getBirthday() {
            return birthday;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public String getCustomType() {
            return customType;
        }

        public void setCustomType(String customType) {
            this.customType = customType;
        }

        public String getMinRent() {
            return minRent;
        }

        public String getRent() {
            return minRent+"-"+maxRent;
        }

        public void setMinRent(String minRent) {
            this.minRent = minRent;
        }

        public String getMaxRent() {
            return maxRent;
        }

        public void setMaxRent(String maxRent) {
            this.maxRent = maxRent;
        }

        public String getMinArea() {
            return minArea;
        }


        public String getArea() {
            return minArea+"-"+maxArea;
        }



        public void setMinArea(String minArea) {
            this.minArea = minArea;
        }

        public String getMaxArea() {
            return maxArea;
        }

        public void setMaxArea(String maxArea) {
            this.maxArea = maxArea;
        }

        public String getQuarters() {
            return quarters;
        }

        public void setQuarters(String quarters) {
            this.quarters = quarters;
        }

        public String getDetails() {
            return details;
        }

        public void setDetails(String details) {
            this.details = details;
        }

        public String getNotes() {
            return notes;
        }

        public void setNotes(String notes) {
            this.notes = notes;
        }

        public String getAddtime() {
            return addtime;
        }

        public void setAddtime(String addtime) {
            this.addtime = addtime;
        }

        public String getQiuZu(){
            if (ValidateUtils.isNotEmptyString(minRent)){
                if (ValidateUtils.isNotEmptyString(details)){
                    return minRent+"-"+maxRent+"\n"+details;
                }else {
                    return minRent+"-"+maxRent;
                }
            }else {
                return "暂未提供";
            }
        }
    }
}
